import java.util.Random;


public class Test {

	public static void main(String[] args) throws Exception{
		for(int i = 0 ; i < 10 ; i++){
			new Thread(new Runnable(){
				@Override
				public void run() {
					try{
						Thread.sleep((long)(Math.abs(new Random().nextInt(10) % 10) * 1000));
					}
					catch(Exception e){
						e.printStackTrace();
					}
					
					System.out.println(Thread.currentThread().getName() + ":" + Const.CONST_INT);
				}
			}).start();
			
		}
	}
}

interface Const{
	
	public static final int CONST_INT = new Random().nextInt();
	
}
